
export const IS_DEFAULT = {
	DEFAULT: {
		value: 1,
		desc: '默认'
	},
	UNDEFAULT: {
		value: 0,
		desc: '非默认'
	}
}
export const APPROVAL_FILE = {
	YES: {
		value: 1,
		desc: '是'
	},
	NO: {
		value: 0,
		desc: '否'
	}
}

export const STATUS = {
	DAISHENHE: {
		value: 1,
		desc: '待审核'
	},
	DAIFUKUAN: {
		value: 2,
		desc: '待付款'
	},
	DAIWANSHUI: {
		value: 3,
		desc: '待完税'
	},
	WANCHENG: {
		value: 4,
		desc: '待完成'
	},
	BOHUI: {
		value: 5,
		desc: '驳回申请'
	}
}

export const ROLE_LIST = {
	DIRECTOR: {
		value: 1,
		desc: '项目负责人'
	},
	MEMBER: {
		value: 2,
		desc: '团队成员'
	},
	SUBJECT: {
		value: 3,
		desc: '受试者'
	},
	RESEARCH: {
		value: 4,
		desc: '研究中心'
	}
}

export const USER_TYPE = {
	GEREN: {
		value: 1,
		desc: '个人',
		color: 'F50'
	},
	ZUZHI: {
		value: 2,
		desc: '组织'
	}
}

export const APPLY_COST_TYPE = {
	RESEARCH: {
		value: 1,
		desc: '研究者'
	},
	SUBJECT: {
		value: 2,
		desc: '受试者'
	}
}

/* 审批状态 1：30:待审批  41:通过(财务角色-待完税)  50:待付款  60:已完成 */

export const EXAMINE_TYPE = {
	WAITCOMMIT: {
		value: 10,
		desc: '待提交'
	},
	WAITPROOF: {
		value: 20,
		desc: '待补充'
	},
	WAITAPPROVE: {
		value: 30,
		desc: '审核中'
	},
	CHECKING: {
		value: 31,
		desc: '审核中'
	},
	REFUSE: {
		value: -1,
		desc: '审核驳回'
	},
	PASSTAX: {
		value: 41,
		desc: '待完税'
	},
	DAIZHIFU: {
		value: 50,
		desc: '待支付'
	},
	PAYINT: {
		value: 51,
		desc: '支付中'
	},
	YIWANCHENG: {
		value: 60,
		desc: '已完成'
	}
}

// 申请人: 全部，待审核，审核驳回, 审核通过
export const APPLIER_STATUS = [
  {
    value: '30,31,41,50,51,60,-1',
    desc: '全部'
  },
  {
    value: 30,
    desc: '待审核'
  },
  {
    value: -1,
    desc: '审核驳回'
  },
  {
    value: '31,41,50,51,60',
    desc: '审核通过'
  }
]

// 财务
export const FINANCE_STATUS = [
  {
    value: '30,31,41,50,51,60,-1',
    desc: '全部'
  },
  {
    value: 30,
    desc: '待审核'
  },
  {
    value: -1,
    desc: '审核驳回'
  },
  {
    value: 41,
    desc: '待完税'
  },
  {
    value: 51,
    desc: '支付中'
  },
  {
    value: 50,
    desc: '付款失败'
  },
  {
    value: 60,
    desc: '已完成'
  }
]

// 申请人搜索条件
export const APPLY_QUERY_STATUS = [
  {
    value: 20,
    desc: '待补充'
  },
  {
    value: '30,31',
    desc: '审核中'
  },
  {
    value: -1,
    desc: '审核驳回'
  },
  {
    value: 41,
    desc: '待完税'
  },
  {
    value: '50,51',
    desc: '待支付'
  },
  {
    value: 60,
    desc: '已完成'
  }
]

// 旧的
/* 审批状态 1：待提交 2：待PI审核 3：PI已驳回 4：PM待审核 5：PM已驳回 6：待支付 7：保税中 8：已完成 */

// export const EXAMINE_TYPE = {
// 	DAITIJIAO: {
// 		value: 10,
// 		desc: '待提交'
// 	},
// 	DAIPISHENHE: {
// 		value: 20,
// 		desc: '待PI审核'
// 	},
// 	PIBOHUI: {
// 		value: 30,
// 		desc: 'PI已驳回 '
// 	},
// 	PMDAISHENHE: {
// 		value: 40,
// 		desc: 'PM待审核'
// 	},
// 	PMBOHUI: {
// 		value: 50,
// 		desc: 'PM已驳回'
// 	},
// 	DAIZHIFU: {
// 		value: 60,
// 		desc: 'PM已驳回'
// 	},
// 	BAOSHUIZHONG: {
// 		value: 70,
// 		desc: '保税中'
// 	},
// 	YIWANCHENG: {
// 		value: 80,
// 		desc: '已完成'
// 	}
// }
export const ENUMERATION = {
	DAISHENHE: {
		value: 1,
		desc: '增加'
	},
	DAIFUKUAN: {
		value: 2,
		desc: '删除'
	},
	DAIWANSHUI: {
		value: 3,
		desc: '更新'
	},
	BAOSHUIZHONG: {
		value: 4,
		desc: '查询'
	},
	YIWANCHENG: {
		value: 5,
		desc: '登陆验证'
	},
	DAIPISHENHE: {
		value: 3,
		desc: '导入'
	},
	DAIZHIFU: {
		value: 4,
		desc: '导出'
	}
}

// 30:待审批  41:通过(财务角色-待完税)  50:待付款  60:已完成

export const CAIWU_STATUS = {
	DAISHENGPI: {
		value: 30,
		desc: '待审批'
	},
	DAIWANSHUI: {
		value: 2,
		desc: '待完税'
	},
	DAIFUKUAN: {
		value: 50,
		desc: '待付款'
	},
	WANCHENG: {
		value: 60,
		desc: '完成'
	},
	BOHUI: {
		value: 5,
		desc: '驳回'
	}
}

export const SUBJECTANDREESA = {
	DAISHENGPI: {
		value: 1,
		desc: '研究者'
	},
	DAIWANSHUI: {
		value: 2,
		desc: '受试者'
	}
}

export const SYSTEM_TYPE = {
	PAYMENT: {
		value: 1,
		desc: 'Payment'
	},
	CONSENT: {
		value: 2,
		desc: 'Consent'
	},
	SOURCE: {
		value: 3,
		desc: 'Source'
	},
	MP: {
		value: 4,
		desc: '小程序'
	},
	PAD: {
		value: 5,
		desc: 'Pad'
	}
}

export const EVENT_TYPE = {
	CLICK: {
		value: 1,
		desc: '点击'
	},
	BROWSER: {
		value: 2,
		desc: '浏览'
	}
}

export const DOMAIN_TYPE = {
	PC: {
		value: 'PC',
		desc: 'PC端'
	},
	MP: {
		value: 'MP',
		desc: '小程序'
	},
	PAD: {
		value: 'PAD',
		desc: 'Pad端'
	}
}
export const DOMAIN_TYPE_LIST = {
	PC: {
		value: 1,
		desc: 'PC端'
	},
	MP: {
		value: 2,
		desc: '小程序'
	},
	PAD: {
		value: 3,
		desc: 'Pad端'
	}
}

export const FEE_CHECK_STATUS = {
	WAIT: {
		value: 0,
		desc: '待处理'
	},
	ADOPT: {
		value: 1,
		desc: '通过'
	},
	SUBMIT: {
		value: 2,
		desc: '提交费用申请'
	},
  SUBMIT_EXTRA: {
		value: 3,
		desc: '已提交补充资料'
	},
  SUBMIT_TAX: {
		value: 4,
		desc: '已提交完税证明'
	},
  SUBMIT_3: {
		value: 5,
		desc: '财务提交重新打款申请'
	},
	PAYING: {
		value: 6,
		desc: '付款中'
	},
	PAYED: {
		value: 7,
		desc: '已付款'
	},
	REJECT: {
		value: -1,
		desc: '拒绝'
	},
	FAIL: {
		value: -2,
		desc: '付款失败'
	}
}
export const APPROVAL_STATUS = {
	WAIT: {
		value: 10,
		desc: '待提交'
	},
	ADOPT: {
		value: 20,
		desc: '待补充资料'
	},
	NO_APPROVAL: {
		value: 30,
		desc: '待审核'
	},
	APPROVAL: {
		value: 31,
		desc: '审核中'
	},
	PASS_TAX: {
		value: 41,
		desc: '待报税'
	},
	NO_PAY: {
		value: 50,
		desc: '待付款'
	},
	PAYING: {
		value: 51,
		desc: '付款中'
	},
	COMPLETED: {
		value: 60,
		desc: '已完成'
	},
	REJECT: {
		value: -1,
		desc: '已驳回'
	}
}

export const INVITE_STATUS = {
	INVITE: {
		value: 1,
		desc: '已邀请'
	},
	COMPLETED: {
		value: 2,
		desc: '已加入'
	}
}
export const PROJECT_STATUS = {
	NO_START: {
		value: 1,
		desc: '未启动'
	},
	GOING: {
		value: 2,
		desc: '进行中'
	},
	CLOSED: {
		value: 3,
		desc: '已关闭'
	}
}
export const ACTION_TYPE = {
	VIEW: {
		value: 'QUERY',
		desc: '查询'
	},
	ADD: {
		value: 'ADD',
		desc: '新增'
	},
	UPDATE: {
		value: 'UPDATE',
		desc: '编辑'
	},
	DELETE: {
		value: 'DELETE',
		desc: '删除'
	},
	EXPORT: {
		value: 'EXPORT',
		desc: '导出'
	},
	IMPORT: {
		value: 'IMPORT',
		desc: '导入'
	},
  LOGIN: {
		value: 'LOGIN',
		desc: '登录'
	},
  LOGOUT: {
		value: 'EXIT',
		desc: '退出'
	},
  JOIN: {
		value: 'JOIN',
		desc: '加入'
	},
  APPROVAL: {
		value: 'APPROVAL',
		desc: '审批'
	},
  TRANSACT: {
		value: 'TRANSACT',
		desc: '办理个税'
	}
}
export default {
	APPROVAL_FILE,
	IS_DEFAULT,
	STATUS,
	ROLE_LIST,
	USER_TYPE,
	APPLY_COST_TYPE,
	EXAMINE_TYPE,
	ENUMERATION,
	CAIWU_STATUS,
	SUBJECTANDREESA,
	SYSTEM_TYPE,
	DOMAIN_TYPE,
	EVENT_TYPE,
	FEE_CHECK_STATUS,
	APPROVAL_STATUS,
	INVITE_STATUS,
	DOMAIN_TYPE_LIST,
	PROJECT_STATUS,
	ACTION_TYPE
}
